typedef void OnMessageCallback(params);
typedef void OnErrorCallback(code,params);
typedef void OnCloseCallback(code, params);
typedef void OnOpenCallback();

abstract class BaseSocket {
  OnMessageCallback onMessageCallback;
  OnCloseCallback onCloseCallback;
  OnOpenCallback onOpenCallback;
  OnErrorCallback onErrorCallback;

  connect() {}
  send(msg) {}
  close() {}
}
